package com.xinyin.aiqinhaiback.servicetest;

public class OrderService {
	private DiscountStrategy discountStrategy;

	public OrderService(DiscountStrategy discountStrategy) {
		this.discountStrategy = discountStrategy;
	}

	public double processOrder(double originalAmount) {
		return discountStrategy.applyDiscount(originalAmount);
	}
}
